package main
import(
	"fmt"
	"math/rand"
	"time"
)

func main(){
	var choose = 10
	fmt.Println("我选择的数字是",choose)
	for {
		var num = rand.Intn(100)+1
		if num<choose{
			fmt.Println(num,"猜小了")
		}else if num>choose{
			fmt.Println(num,"猜大了")
		}else{
			fmt.Println(num,"猜中了")
			break
		}
        time.Sleep(1*time.Second)
	}
}